package cn.wolfcode.luowowo.member.service;

import cn.wolfcode.luowowo.common.exception.LogicException;
import cn.wolfcode.luowowo.member.domain.UserInfo;

import java.util.List;

public interface IUserInfoService {
    UserInfo get(Long id);

    boolean checkPhone(String phone)  throws LogicException ;

    void regist(String phone, String nickname, String password, String rpassword, String verifyCode)  throws LogicException;

    void sendVerifyCode(String phone) throws LogicException;

    String userLogin(String username, String password)  throws LogicException;

    List<UserInfo> list();

    String update(UserInfo userInfo);

    String updateheadImg(String path, Long id);

    List<UserInfo> getFromId(Long id);

    List<UserInfo> getFans(Long id);

    String updatePassWord(String newpassword, Long id);
}
